﻿@using Utils.Commons
@{
    ViewBag.Title = "sc.order.com";
    var loginKey = StaticString.Token;
}

<h1><a href="https://localhost:44397">这是sc.order.com</a></h1>
<br />
<h2><a href="https://localhost:44327/">sc.user.com</a></h2>

<br />
<br />
<hr />
<h3><a href="~/LoginAuth/LoginOut">退出</a></h3>
<br />
<br />

<div>
    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
       aria-expanded="false">
        这是Cookie token:
        <i class="fa fa-user-o fa-fw"></i>
        @if (Request.Cookies[loginKey] != null)
        {
            @Request.Cookies[loginKey].Value;
        }
        <span class="caret"></span>
    </a>
</div>
<br />
<div>
    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
       aria-expanded="false">
        这是Session token:
        <i class="fa fa-user-o fa-fw"></i>
        @if (Session[loginKey] != null)
        {
            @Session[loginKey].ToString();
        }
        <span class="caret"></span>
    </a>
</div>